projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce667c3
)
(lisp_data_to_selection_data): charsets from `char' to `int.
author
Kenichi Handa
<handa@m17n.org>
Mon, 19 May 1997 03:33:50 +0000
(
03:33
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 19 May 1997 03:33:50 +0000
(
03:33
+0000)
src/xselect.c
patch
|
blob
|
history
diff --git
a/src/xselect.c
b/src/xselect.c
index cf2fe19a4ae41100e817c95ba808a8389aa3ed16..20a977b8fa59178cbb19dd9ace6dfe598e7fcea6 100644
(file)
--- a/
src/xselect.c
+++ b/
src/xselect.c
@@
-1596,13
+1596,13
@@
lisp_data_to_selection_data (display, obj,
{
/* Since we are now handling multilingual text, we must consider
sending back compound text. */
-
char
charsets[MAX_CHARSET + 1];
+
int
charsets[MAX_CHARSET + 1];
int num;
*format_ret = 8;
*size_ret = XSTRING (obj)->size;
*data_ret = XSTRING (obj)->data;
- bzero (charsets,
MAX_CHARSET + 1
);
+ bzero (charsets,
(MAX_CHARSET + 1) * sizeof (int)
);
num = ((*size_ret <= 1) /* Check the possibility of short cut. */
? 0
: find_charset_in_str (*data_ret, *size_ret, charsets, Qnil));